You see the size of the heap grows from the initial allocation and eventually settles around a range of values. 可以看到堆的大小从最初的分配开始增长,最终稳定在某一范围内。
Consequently, it must incur a long pause to defragment, or compact, the heap to coalesce many smaller free memory areas into larger free memory areas to satisfy a large allocation request. 因此,必然会引发长时间的暂停来整理碎片或进行压缩,堆将很多小块的自由内存区域整合为一块大的自由内存区域,从而满足大型分配请求。
Monitoring your heap allocation is one of the simplest ways to detect a dreaded memory leak. 监视堆分配是检测可怕的内存泄漏最简单的方法之一。
Mark-sweep collectors also tend to leave the heap fragmented, which can cause locality issues and can also cause allocation failures even when sufficient free memory appears to be available. 标记-清除收集器还容易使堆产生碎片,这会产生区域性问题并可以造成分配失败,即使看来有足够的自由内存可用。
If the large-object section is filled and another large object requests allocation, the object is placed on the other main section of the heap. 如果大型对象部分已满且有另一个大型对象请求分配,那么这个对象就被放在heap的另一个主要部分上。
Some processors, such as Azul's Vega, include hardware support for accelerating heap allocation. 有些处理器,例如Azul的Vega,包含加速堆分配的硬件支持。
An online backup will likely require some more memory from the UTIL_HEAP memory allocation to allocate some internal structures that help support this operation. 在线备份很可能需要从UTILHEAP内存分配中得到更多的内存,以便为一些帮助支持这种操作的内部结构分配内存。
Desired heap size and target utilization must be tuned to the application so target utilization maintains the desired application throughput while letting the GC keep up with allocation. 期望的堆大小和目标利用率必须针对应用程序进行调整,使目标利用率保持期望的应用程序吞吐量,同时使GC能够满足分配。
The first ratio is the normal area of the heap ( 80 percent used for normal processing), and the second is what we have defined for the large objects ( 20 percent for large-object allocation). 第一个比率是heap的常规区域(80%用于常规处理),第二个比率是我们为大型对象分配的heap段(20%分配给大型对象)。
The final copy shows the amount of heap available after the request that triggered the allocation was satisfied. 最后一个副本显示满足触发分配的请求之后可用堆的数量。
This results in a "flat heap", where the entire heap space is available for transient object allocation rather than just the nursery space. 这将导致一个“扁平堆”,其中,整个堆空间(而不只是保育空间)都可用于临时对象分配。
The most likely type is a memory problem, such as memory leak, heap fragmentation, or large object allocation. 最有可能的类型是内存问题,如内存泄漏、堆碎片、或者大对象分配。
When analyzing native_stderr. log, we found that the GC cycles were fine, and there were no memory issues, such as memory leak, heap fragmentation, and large object allocation. 在分析nativestderr.log时,我们发现垃圾收集周期没有问题,并且不存在内存问题,如内存泄漏、堆碎片和大对象分配。
Prints specific details about the memory at location addr, including its location ( stack, heap, text) and, if it is heap memory, then the call chains of its allocation and free history. 打印关于addr单元内存的特殊细节,包括它的储存单元(堆叠,累计,文本)以及,如果它累计了大量内存,还有它的分配调用链和释放历史。
The JVM can notify the profiler agent about various events that correspond to, for example, heap allocation, thread start, and so on. JVM可以通知性能分析代理相关的变化的事件,比如,堆分配、线程启动等等。
However, because of how it lays out objects in the heap, the gencon policy enables much faster object allocation and faster object access. 但是,由于gencon策略在堆中放置对象的特定方式,该策略支持更快的对象分配和更快的对象访问。
Garbage collects occur automatically when the Java heap has been exhausted to the point that an allocation request can't be satisfied. 当Java堆耗尽后仍然不能满足分配请求时,将自动进行垃圾收集。
The aim of the GC is to clear up the JVM heap of any objects that are no longer required, thus providing enough space for the object that previously failed allocation. GC的目标是清理不再需要的对象的JVM堆,从而向此前分配失败的对象提供足够的空间。
So the heap is a chunk of memory in a computer's RAM that's conceptually allocated to what's called dynamic memory allocation. 堆是在计算机RAM中的一块内存,它可以进行,动态内存分配。
In this paper, the working principle of heap allocation is introduced. 介绍了堆分配程序的工作实质,分析了堆操作延缓程序运行的原因,并提出了相应的调整措施。